package br.fagoc.easyds.ui.jgraph;

import com.mxgraph.view.mxGraph;

public class GraphManipulator {
	
	private mxGraph graph;

	public GraphManipulator(mxGraph graph){
		this.graph = graph;
	}
	
	public void refreshGraph(){
		graph.refresh();
	}
	
	public void cleanGraph(){
		graph.removeCells(graph.getChildVertices(graph.getDefaultParent()));
		graph.repaint();
	}
}
